<?php $this->header(); ?>
<div class="wrap">
    <div class="nav">
        <ul class="cc">
            <li class="current"><a href="/?g=Admin&m=<?php echo MODULE; ?>&a=index">用户组列表</a></li>
        </ul>
    </div>
    <div class="mb10"><a class="btn" href="/?g=Admin&m=<?php echo MODULE; ?>&a=addGroup" title="添加用户组" role="button"><span class="add"></span>添加用户组</a></div>

    <?php if (!empty($list)): ?>
        <div class="table_list">
            <table width="100%">
                <thead>
                    <tr>
                        <td>ID</td>
                        <td>组名称</td>
                        <td>创建时间</td>
                        <td>操作</td>
                    </tr>
                </thead>
                <?php foreach ($list as $key => $value): ?>
                    <tr>
                        <td><?php echo $value['id']; ?></td>
                        <td><?php echo $value['name']; ?></td>
                        <td><?php echo $func->toDate($value['createtime'], 'Y-m-d'); ?></td>
                        <td>
                            <a href="<?php echo '/?g=Admin&m=' . MODULE . '&a=editGroup&id=' . $value['id']; ?>" class="btn btn_submit J_ajax_submit_btn" >编辑</a>
                            <a href="<?php echo '/?g=Admin&m=' . MODULE . '&a=deleteGroup&id=' . $value['id']; ?>" class="btn btn_submit J_ajax_submit_btn" onclick="return deleteWarning(this)">删除</a>
                            <a href="<?php echo '/?g=Admin&m=' . MODULE . '&a=competence&id=' . $value['id']; ?>" class="btn btn_submit J_ajax_submit_btn" >编辑权限</a>
                        </td>
                    </tr>
                <?php endforeach; ?>
            </table>
        </div>
        <?php echo $page; ?>
    <?php else: ?>
        <div class="not_content_mini"><i></i>啊哦，没有符合条件的用户！</div>
            <?php endif; ?>


</div>
<?php $this->footer(); ?>